import {ResponseInterface} from "@/interface/ResponseInterface";
import {Response} from "express";

/**
 * 抛出异常信息
 * @param message
 */
export const error = (message: string) => {
    throw new Error(message)
}
export const send = (response: Response, data: ResponseInterface) => {
    response.send(data)
}